package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Getter
@Setter
@Document(collection = "postage_template")
public class PostageTemplate extends EntityBase {
    private String name;
    /**
     * 计价方式,0:按件数,1:按重量,2:按体积
     */
    private Integer pricingModel;
    /**
     * 优先级
     */
    private Integer priority;
    /**
     * 价格,单位元
     */
    private Double price = 0D;
    /**
     * 描述,富文本
     */
    private String desc;
    /**
     * 邮费明细
     */
    @Transient
    private List<PostageTemplateDetail> details;
    /**
     * 偏远地区是否加邮费
     */
    private Boolean addFee=Boolean.TRUE;
    /**
     * 订单提示语
     */
    private String expressFeeTips;
    private String expressDesc;
}
